package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import domain.User;
import domain.example.UserExample;
import mapper.UserMapper;
import service.IUserService;

@Service("UserService")
public class UserServiceImpl implements IUserService {
	@Resource
	private UserMapper mapper;
	
	@Override
	public int countByExample(UserExample example) {
		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(UserExample example) {
		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer userId) {
		return mapper.deleteByPrimaryKey(userId);
	}

	@Override
	public int insert(User record) {
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(User record) {
		return mapper.insertSelective(record);
	}

	@Override
	public List<User> selectByExample(UserExample example) {
		return mapper.selectByExample(example);
	}

	@Override
	public User selectByPrimaryKey(Integer userId) {
		return mapper.selectByPrimaryKey(userId);
	}

	@Override
	public int updateByExampleSelective(User record, UserExample example) {
		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(User record, UserExample example) {
		return mapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(User record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(User record) {
		return mapper.updateByPrimaryKey(record);
	}

}
